package com.medicine.hbp.uitl;

import com.medicine.hbp.ui.LoginActivity;
import com.medicine.hbp.ui.ReleaseActivity;
import com.medicine.hbp.ui.SelfUserTwoActivity;

import android.app.Activity;
import android.content.Intent;

/**
 * 公共跳转方法
 *
 * @author Administrator
 */
public class StartIntent {
	/**
	 * 跳转个人界面
	 * @param activity
	 */
	public static void startUser(Activity activity,int id) {
		Intent intent= new Intent(activity,SelfUserTwoActivity.class);
		intent.putExtra("userId", id);
		activity.startActivity(intent);
	}
	/**
	 * 跳转发布
	 * @param activity
	 */
	public static void startRelease(Activity activity) {
		Intent intent= new Intent(activity,ReleaseActivity.class);
		activity.startActivity(intent);
	}
	/**
	 * 跳转登陆
	 * @param activity
	 */
	public static void startLogin(Activity activity) {
		Intent intent= new Intent(activity,LoginActivity.class);
		activity.startActivity(intent);
	}
	/**
	 * 跳转登陆
	 * @param activity
	 */
	public static void MainStartLogin(Activity activity,int tab) {
		Intent intent= new Intent(activity,LoginActivity.class);
		activity.startActivityForResult(intent, tab);
	}
	public static void startLogin(MyApplication myApplication) {
		Intent intent= new Intent(myApplication,LoginActivity.class);
		myApplication.startActivity(intent);

	}
}
